package com.dotflat.check.domain;


import com.dotflat.rest.domain.AreableObjectBase;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 设备表
 */
@Entity
@Table(name = "c_device")
@lombok.Data
@EqualsAndHashCode(callSuper = true)
public class Device extends AreableObjectBase
{

    @Column(columnDefinition = "varchar(255)   COMMENT '设备序列号' ")
    private String serialNO;

    @Column(columnDefinition = "varchar(255)   COMMENT '设备名称' ")
    private String name;

    @Column(columnDefinition = "varchar(255)   COMMENT '地域' ")
    private String address;

    @Column(columnDefinition = " int default 1 COMMENT '设备类型 1：温度，2:湿度,3:噪音,4:空气质量' ")
    private Integer type;

    @Column(columnDefinition = "int default 0  COMMENT '状态0正常1停用' ")
    private int status;

    @Column(columnDefinition = "varchar(255)   COMMENT '备注' ")
    private String remark;
}
